/**
 * @name 路由配置项
 *
 */
import Home from "@/pages/Home";
import DateSelect from "@/pages/Date_select";
import Swiper from "@/pages/Swiper";
import MobxTest from "@/pages/Mobx_test";
import Language from "@/pages/Language_change";
import PassWord from "@/pages/Pass_word";
import DownLoad from "@/pages/Down_load";
import SVGS from "@/pages/Svg_file";
import Test from "@/pages/test";
import Tooltip from "@/pages/Tool_tip";
import AutoApply from "@/pages/Auto_apply";
import Sort from "@/pages/Sort";
import Reduce from "@/pages/Reduce";
import HighLight from "@/pages/HighLight";
import RegExps from "@/pages/RegExp";
import Scroll from "@/pages/Scroll";
import Barrage from "@/pages/Barrage";
import Hexagon from "@/pages/Hexagon";
import NestRoute from "@/pages/Nest_route";
import Article from "@/component/Article";
import ReactRoute from "@/pages/ReactRoute";
import WaterFall from "@/pages/Water_fall";
import { Context, Fragment, Refs } from "@/pages/ReactAdvancedGuides";
import MoveSort from "@/pages/MoveSort";
import PDFView from "@/pages/PDFView";
import PDFViewTwo from "@/pages/PDFView/view-two";
import XLSXView from "@/pages/XLSXView";
export default [
  {
    path: "/",
    exact: true,
    name: "首页",
    component: Home
  },
  {
    path: "/date-select",
    exact: true,
    name: "时间类型选择",
    component: DateSelect
  },
  {
    path: "/mobx-api",
    exact: true,
    name: "mobx测试",
    component: MobxTest
  },
  {
    path: "/language",
    exact: true,
    name: "语言切换",
    component: Language
  },
  {
    path: "/pass-word",
    exact: true,
    name: "登录类验证",
    component: PassWord
  },
  {
    path: "/down-load",
    exact: true,
    name: "下载进度条",
    component: DownLoad
  },
  {
    path: "/svg-learn",
    exact: true,
    name: "Svg学习",
    component: SVGS
  },
  {
    path: "/test",
    exact: true,
    name: "Test",
    component: Test
  },
  {
    path: "/tooltip",
    exact: true,
    name: "仿Element table超出隐藏展示标签",
    component: Tooltip
  },
  {
    path: "",
    name: "父级",
    children: [
      {
        path: "/swiper",
        exact: true,
        name: "Swiper滑动",
        component: Swiper
      }
    ]
  },
  {
    path: "/autoapply",
    exact: true,
    name: "自适应",
    component: AutoApply
  },
  {
    path: "/sort",
    exact: true,
    name: "排序",
    component: Sort
  },
  {
    path: "/reduce",
    exact: true,
    name: "reduce方法",
    component: Reduce
  },
  {
    path: "/heighlight",
    exact: true,
    name: "代码高亮",
    component: HighLight
  },
  {
    path: "/regexp",
    exact: true,
    name: "正则校验",
    component: RegExps
  },
  {
    path: "/scroll",
    exact: true,
    name: "滚动条一些事件",
    component: Scroll
  },
  {
    path: "/barrage",
    exact: true,
    name: "弹幕实验",
    component: Barrage
  },
  {
    path: "/hexagon",
    exact: true,
    name: "canvas正六变形",
    component: Hexagon
  },
  {
    path: "/nest-route",
    exact: true,
    name: "嵌套路由",
    component: NestRoute
  },
  {
    path: "/nest-route/:id",
    exact: true,
    name: "",
    component: Article
  },
  {
    path: "/react-route",
    exact: true,
    name: "路由学习",
    component: ReactRoute
  },
  {
    path: "/water-fall",
    exact: true,
    name: "瀑布流展示",
    component: WaterFall
  },
  {
    path: "/react-advanced-guides",
    exact: true,
    name: "React高级指引学习",
    children: [
      {
        path: "/react-advanced-guides/Fragment",
        exact: true,
        name: "Fragment",
        component: Fragment
      },
      {
        path: "/react-advanced-guides/Context",
        exact: true,
        name: "Context",
        component: Context
      },
      {
        path: "/react-advanced-guides/Refs",
        exact: true,
        name: "Refs",
        component: Refs
      }
    ]
  },
  {
    path: "/move-sort",
    exact: true,
    name: "移动排序",
    component: MoveSort
  },
  {
    path: "/pdf-view",
    exact: true,
    name: "PDF预览",
    // component: PDFView
    children: [
      {
        path: "/pdf-view/in",
        exact: true,
        name: "内部依赖",
        component: PDFView
      },
      {
        path: "/pdf-view/out",
        exact: true,
        name: "外部组件",
        component: PDFViewTwo
      }
    ]
  },
  {
    path: "/xlsx-view/in",
    exact: true,
    name: "xlsx表格预览",
    component: XLSXView
  }
];
